#include <iostream>

#include "builder.h"
#include "proxy.h"
#include "decorator.h"
using namespace std;

int main()
{
//    FlatBuild *fb=new FlatBuild;
//    VillaBuild *vb=new VillaBuild;

//    Director *dr=new Director;
//    dr->Construct(fb);
//    dr->Construct(vb);
    ProxyClass *pc = new ProxyClass;
    pc->Request();

    Car *runcar = NULL;
    runcar = new RunCar;
    runcar->show();

    //开始包装
    SwimCarDirector *scd = new SwimCarDirector(runcar);
    scd->show();



    return 0;


}
